// 还是导入基路径
import request from '@/utils/request'
// 获取联想菜单
const suggApi = ({ keyword }) => {
  return request({
    method: 'get',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}
// 获取搜索结果列表
const getSearchApi = ({ page = 1, keyword }) => {
  return request({
    method: 'get',
    url: '/v1_0/search',
    params: {
      page,
      q: keyword
    }
  })
}
export { suggApi, getSearchApi }
